<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>图书列表</title>
</head>
<link href="static/css/books.css" rel="stylesheet" type="text/css" />
<body>
	<div class="container books-list">
		<form action="BookServlet" method="post">
			<input name="content" />
			<select name="type">
				<option>书名</option>
				<option>作者</option>
			</select>
			<button type="submit">搜索</button>
		</form>
		<header>
			<span class="row-item">ID</span> <span class="row-item flex-2">书名</span>
			<span class="row-item">作者</span> <span class="row-item">价格</span> <span
				class="row-item">描述</span>
		</header>

		<ul>
			<c:forEach items="${data}" var="item">

				<li><span class="row-item">${item.getId()} </span> <span
					class="row-item flex-2">${item.getBookName() }</span> <span
					class="row-item">${item.getBookAuthor() }</span> <span
					class="row-item">${item.getBookMoney() }</span> <span
					class="row-item">${item.getBookDesc() }</span></li>


			</c:forEach>
		</ul>
	</div>
</body>
</html>